package com.qcrud.records;

import com.qcrud.annotation.Column;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Getter
@Setter
public class Person {
    private Integer id;
    private String name;
    private String email;
    private LocalDateTime lastLogin;

    @Column(ignore = true)
    private String notColumn;

    public Person() {

    }

    public Person(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public Person(String name, String email, LocalDateTime lastLogin) {
        this.name = name;
        this.email = email;
        this.lastLogin = lastLogin;
    }

}
